package com.vvvtimes.demo.controller;

import com.vvvtimes.demo.common.dto.RestResponse;
import com.vvvtimes.demo.domain.dto.IsoHashDTO;
import com.vvvtimes.demo.domain.vo.IsoHashVo;
import com.vvvtimes.demo.service.ValidateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/validate")
public class ValidateController {

    @Autowired
    private ValidateService validateService;

    @RequestMapping(value = "/isGenuineWindowsIso", method = {RequestMethod.POST, RequestMethod.GET})
    public RestResponse<IsoHashVo> isGenuineWindowsIso(@RequestBody IsoHashDTO isoHashDTO) {
        return validateService.isGenuineWindowsIso(isoHashDTO);
    }


}

